package smartcampus.scjava;

import cn.xuyanwu.spring.file.storage.EnableFileStorage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @author 黄梓庭
 * time： 2023/10/17
 */
@SpringBootApplication
@EnableAsync
@EnableCaching
@EnableScheduling
@EnableFileStorage
@EnableWebMvc
@MapperScan("smartcampus.scjava.mapper")
public class ScJavaApplication {

    public static void main(String[] args) {
//        SpringApplication.run(ScJavaApplication.class, args);
        SpringApplicationBuilder builder = new SpringApplicationBuilder(ScJavaApplication.class);
        builder.headless(false).run(args);
    }

}
